﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using Persistence;
using System.Data;

namespace BusinessLogic
{
    public class StudentBL
    {
        public static long addStudent(Student stu)
        {
            return StudentController.insertStudent(stu);
        }
        public static void updateStudent(Student stu)
        {
            StudentController.updateStudent(stu);
        }
        public static void deleteStudent(long vId)
        {
            StudentController.deleteStudent(vId);
        }
        public static Student getStudentById(long vId)
        {
            return StudentController.getStudentById(vId);
        }
        public static DataTable getStudentListBySearch(string vSearch)
        {
            return StudentController.getStudentListBySearch(vSearch);
        }
    }
}
